package bb.lanxing.model.json;

import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
import java.util.List;

public class RankUserBean extends BaseResponseBean<RankUserBean> implements Parcelable {
    public static final Parcelable.Creator<RankUserBean> CREATOR = new Parcelable.Creator<RankUserBean>() {
        @Override
        public RankUserBean createFromParcel(Parcel source) {
            return new RankUserBean(source);
        }

        @Override
        public RankUserBean[] newArray(int size) {
            return new RankUserBean[size];
        }
    };
    private List<User> rank;
    private User user;

    @Override
    public int describeContents() {
        return 0;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<User> getRank() {
        return this.rank;
    }

    public void setRank(List<User> rank) {
        this.rank = rank;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.user, flags);
        dest.writeList(this.rank);
    }

    public RankUserBean() {
    }

    protected RankUserBean(Parcel in2) {
        this.user = (User) in2.readParcelable(User.class.getClassLoader());
        ArrayList arrayList = new ArrayList();
        this.rank = arrayList;
        in2.readList(arrayList, User.class.getClassLoader());
    }

    public static class User implements Parcelable {
        public static final Parcelable.Creator<User> CREATOR = new Parcelable.Creator<User>() {
            @Override
            public User createFromParcel(Parcel source) {
                return new User(source);
            }

            @Override
            public User[] newArray(int size) {
                return new User[size];
            }
        };
        private int hots;
        private int rank;
        private UserBean user;

        @Override
        public int describeContents() {
            return 0;
        }

        public int getRank() {
            return this.rank;
        }

        public void setRank(int rank) {
            this.rank = rank;
        }

        public int getHots() {
            return this.hots;
        }

        public void setHots(int hots) {
            this.hots = hots;
        }

        public UserBean getUser() {
            return this.user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.rank);
            dest.writeInt(this.hots);
            dest.writeParcelable(this.user, flags);
        }

        public User() {
        }

        protected User(Parcel in2) {
            this.rank = in2.readInt();
            this.hots = in2.readInt();
            this.user = (UserBean) in2.readParcelable(UserBean.class.getClassLoader());
        }
    }
}
